package ma.xin.shi.configurations.Service;

import java.util.ArrayList;
import java.util.List;

public class ServiceEventConfig {
	/* for test start */
	private String RPCType;
	/* for test end */

    private String RPCName;
    private String RPCSpecificType;
    private int RPCMethodId;
    private String RPCProtocol;

    private String eventGroupName;
    private int eventGroupId;
    private String eventGroupMutiPort;
    private String eventGroupMutiIP;  
    private String eventPara;
    private String sendStrategy;
    private String cyclicTime;

    private List<String> sList = new ArrayList<>();
    private List<String> cList = new ArrayList<>();
    
    /* for test start */
    public String getRPCType() {
        return RPCType;
    }

    public void setRPCType(String type) {
        this.RPCType = type;
    }
    /* for test end */

    public String getEventName() {
        return RPCName;
    }

    public void setEventName(String eventName) {
        this.RPCName = eventName;
    }

    public String getRPCSpecificType() {
        return RPCSpecificType;
    }

    public void setRPCSpecificType(String RPCSpecificType) {
        this.RPCSpecificType = RPCSpecificType;
    }

    public int getEventId() {
    	return RPCMethodId;
    }

    public void setEventId(int id) {
        this.RPCMethodId = id;
    }

    public String getRPCProtocol() {
        return RPCProtocol;
    }

    public void setRPCProtocol(String RPCProtocol) {
        this.RPCProtocol = RPCProtocol;
    }
    
    public String getEventGroupMutiPort() {
        return eventGroupMutiPort;
    }

    public void setEventGroupMutiPort(String port) {
        this.eventGroupMutiPort = port;
    }
    
    public String getEventGroupMutiIP() {
        return eventGroupMutiIP;
    }

    public void setEventGroupMutiIP(String ip) {
        this.eventGroupMutiIP = ip;
    }

    public String getGroupName() {
        return eventGroupName;
    }

    public void setGroupName(String gName) {
        this.eventGroupName = gName;
    }

    public int getGroupId() {
    	return eventGroupId;
    }

    public void setGroupId(int id) {
        this.eventGroupId = id;
    }

    public String getEventPara() {
        return eventPara;
    }

    public void setEventPara(String para) {
        this.eventPara = para;
    }

    public String getSendStrategy() {
        return sendStrategy;
    }

    public void setSendStrategy(String para) {
        sendStrategy = para;
    }

    public String getCyclicTime() {
        return cyclicTime;
    }

    public void setCyclicTime(String tm) {
        this.cyclicTime = tm;
    }

    public List<String> getsList() { return sList; }
    public void setsList(List<String> sList) { this.sList = sList != null ? sList : new ArrayList<>(); }

    public List<String> getcList() { return cList; }
    public void setcList(List<String> cList) { this.cList = cList != null ? cList : new ArrayList<>(); }
}
